package com.neko.seed.api.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * 用户状态枚举
 * 0-离职 1-普通员工 2-试用员工 3-外包人员
 */
@JsonFormat(shape = JsonFormat.Shape.NUMBER_INT)
public enum UserStatus {
    DISABLE(0, "离职"),
    NORMAL(1, "普通员工"),
    PROBATIONARY(2, "试用员工"),
    CONTRACTOR(3, "外包人员");
    @EnumValue
    private Integer type;
    private String value;

    UserStatus(Integer type, String value) {
        this.type = type;
        this.value = value;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
